package com.cloud.business.service.sys;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cloud.business.model.commonvm.LngAndLat;
import com.cloud.business.model.sys.sysregmapstruct.MapStructDropDown;
import com.cloud.business.model.sys.sysregmapstruct.SysRegMapStructModel;
import com.cloud.business.model.commonvm.DeletePost;
import com.cloud.business.model.commonvm.ResultMsg;

import com.cloud.business.entity.sys.SysRegMapStruct;
import com.cloud.business.model.sys.sysregmapstruct.SysRegMapStructPost;
import com.cloud.business.model.sys.sysregmapstruct.SysRegMapStructQueryModel;
import com.cloud.core.common.HttpContentResult;

import java.util.List;

/**
 * 地区架构表 业务定义层
 * Copyright: Copyright (C) 2020 DLANGEL, Inc. All rights reserved.
 * Company: 大连安琪科技有限公司
 * controller需要执行mp方法请继承extends IService<Entity>
 *
 * @author Rex
 * @since 2020-09-14 17:27:49
 */
public interface ISysRegMapStructService extends IService<SysRegMapStruct> {

    /**
     * 分页列表
     *
     * @param queryModel
     * @param page
     * @param msg
     * @throws Exception
     */
    void getListByPage(SysRegMapStructQueryModel queryModel, IPage<SysRegMapStruct> page, ResultMsg msg) throws Exception;

    /**
     * 创建
     *
     * @param post
     * @param msg
     * @return
     * @throws Exception
     */
    Integer create(SysRegMapStructPost post, ResultMsg msg) throws Exception;

    /**
     * 更新
     *
     * @param post
     * @param msg
     * @return
     * @throws Exception
     */
    Integer update(SysRegMapStructPost post, ResultMsg msg) throws Exception;

    /**
     * 获取单条
     *
     * @param operationId
     * @param objectId
     * @param msg
     * @return
     * @throws Exception
     */
    SysRegMapStruct getById(Integer operationId, Integer objectId, ResultMsg msg) throws Exception;

    /**
     * 批量删除
     *
     * @param deletePost
     * @param msg
     * @return
     * @throws Exception
     */
    int deleteByList(DeletePost deletePost, ResultMsg msg) throws Exception;

    /**
     * 启用/停用
     *
     * @param operationId
     * @param objectId
     * @param isEnable
     * @param msg
     * @return
     * @throws Exception
     */
    void enable(Integer operationId, Integer objectId, Integer isEnable, ResultMsg msg) throws Exception;


    /**
     * 判断当前经纬度在哪个区域
     *
     * @param lngAndLat
     * @return
     * @throws Exception
     */
    HttpContentResult checkReg(LngAndLat lngAndLat) throws Exception;

    /**
     * 获取下拉列表
     *
     * @param operationId
     * @param msg
     * @return
     * @throws Exception
     */
    List<MapStructDropDown> getDropDownList(Integer operationId, ResultMsg msg) throws Exception;

    /**
     * 根据用户获取下拉
     *
     * @param operationId
     * @param msg
     * @return
     * @throws Exception
     */
    List<MapStructDropDown> getDropDownListByUserId(Integer operationId, ResultMsg msg) throws Exception;
}

